package com.kb.service.crm;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kb.common.MeException;
import com.kb.domain.WaitingInvoice;
import com.kb.dto.InvoiceDetailsDTO;
import com.kb.dto.InvoiceSearchDTO;
import com.kb.dto.WaitingInvoiceDTO;
import com.kb.dto.crm.YLCrmInfo;
import com.kb.entity.crm.CrmShipment;
import com.kb.entity.crm.Invoice;
import com.kb.entity.crm.UserInfo;
import com.kb.entity.kbidm.CustomerRequest;

import java.util.List;

public interface KBEService  {
    Page<Invoice> queryInvoice(InvoiceSearchDTO invoiceSearchDTO);

    Invoice queryInvoiceById(String id);

    List<InvoiceDetailsDTO> queryInvoiceDetails(String id);
    String generateDailySequence();

    Page<WaitingInvoice> queryWaitingInvoice(InvoiceSearchDTO invoiceSearchDTO);

    public void applyInvoicing(List<CrmShipment> shipments);

    public List<YLCrmInfo> getCrmCustomer(YLCrmInfo ylCrmInfo);
    public boolean createCustomer(CustomerRequest customerRequest);
    public int getCustomCode();
    public List<UserInfo> getSales();
}
